of

open fun of(data: String): ByteData

Creates an instance of ByteData with the given upload data bytes.

The bytes are retrieved from the data string using the getBytes method with the UTF-8 charset.


open fun of(data: Array<Byte>): ByteData

Creates an instance of ByteData with the given upload data bytes.


open fun of(data: String, contentType: ContentType): ByteData

Creates an instance of ByteData with the given upload data bytes and content type.

The bytes are retrieved from the data string using the getBytes method with the UTF-8 charset.

Since

7.33


open fun of(data: Array<Byte>, contentType: ContentType): ByteData

Creates an instance of ByteData with the given upload data bytes and content type.

Since

7.33